package com.igeek.javase.interfaces.computer;

/**
 * @author chenmin
 * 2023/7/14 15:10
 * @description TODO
 */
public class Computer {

    //private Upan upan;
    private MP3 mp3;

    public Computer(MP3 mp3){
        this.mp3 = mp3;
    }

    public void readData(){
        System.out.println("电脑开始读数据。。。。");
        mp3.read();
    }

    public void writeData(){
        System.out.println("电脑开始写数据。。。。");
        mp3.write();
    }

}
